<?
include_once "accesscontrol.php";

$q1 = "select * from job_education where uname = \"$_SESSION[uname]\" order by En asc ";
$r2 = mysql_query($q1) or die(mysql_error());

if(!empty($_POST[job_category]))
	{
		$pc = implode("|", $_POST[job_category]);
	}
$q3 = "UPDATE job_seeker_info set job_category = '$pc' where uname = \"$_SESSION[uname]\"";
$r3 = mysql_query($q3) or die(mysql_error());

$q4 = "UPDATE job_seeker_info set income = '$_POST[income]', target_company = '$_POST[target_company]', employment = '$_POST[employment]' where uname = \"$_SESSION[uname]\"";
$r4 = mysql_query($q4) or die(mysql_error());



echo "<br>";
while ($a1 = mysql_fetch_array($r2))
{
	echo "
	<form action=EditEducation.php method=post>
	<table align=center width=460 border=1 bordercolor=black cellspacing=0 cellpadding=0 class=BlackText>
	<caption class=HeaderClass>
		Education $a1[En]
	<input type=submit name=submit value=Delete>
	<input type=hidden name=En value=$a1[En]>
	<input type=submit name=submit value=Edit>
	<input type=hidden name=En value=$a1[En]>
	</caption>
	</form>
	<tr>
		<td colspan=4><b>&nbsp; Education Institution: </b>";  echo stripslashes($a1[E_i]); echo "</td>
	</tr>

	<tr>
		<td>&nbsp; <b>Graduate Level</b> </td>
		<td  width=100><b>&nbsp; From date </b></td><td width=185 bgcolor=dddddd>&nbsp; $a1[E_Start] </td>
	</tr>
	<tr>

		<td bgcolor=dddddd> &nbsp; $a1[E_gr] </td>
		<td width=100><b>&nbsp; To date </b></td><td width=185 bgcolor=dddddd>&nbsp; $a1[E_End] </td>
	</tr>
	<tr>
	<td colspan=4>
			<table cellspacing=0 width=100% class=BlackText>
			<tr>
			
			<td valign=top bgcolor=white>
			<b>&nbsp; Description: </b>
			</td>
			</tr>

			<tr>
			<td bgcolor=dddddd>
			$a1[E_d] 
			</td>
			
			</tr>
			</table>
		</td>
	</td>
	</tr>
	</table><br>
	";	
}

$qs = "select count(En) from job_education where uname = \"$_SESSION[uname]\" ";
$rqs = mysql_query($qs) or die(mysql_error());
$aqs = mysql_fetch_array($rqs);

$En = $aqs[0] + 1;
echo "<center><span class=TNA>
	<a href=EEAdd.php?En=$En class=BlackLink>Add another</a> 
	OR 
	<a href=EditSkills.php class=BlackLink>Go to Step 3 (Skills)</a>
        </span></center>";

?>

<? include_once('../footer.php'); ?>